package com.example.emos.api.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author ：Supyo
 * @date ：Created in 2021/11/17 11:11
 * @description：
 */
@Schema(description = "添加指标项表单")
@Data
public class SearchUserByPageForm {
    @NotNull(message = "page不能为空")
    @Min(value = 1, message = "page不能小于1")
    @Schema(description = "页数")
    private Integer page;

    @NotNull(message = "length不能为空")
    @Range(min = 10, max = 1000, message = "length必须在10~50之间")
    @Schema(description = "每页记录数")
    private Integer length;
    /**
     * 用户名
     */
    private String name;
    /**
     * 部门
     */
    private String dept;
    /**
     * 角色
     */
    private Object roles;
    /**
     * 开始入职日期
     */
    private String hiredate1;
    /**
     * 结束入职日期
     */
    private String hiredate2;
    /**
     * 用户名
     */
    private String username;
    /**
     * 性别
     */
    private String sex;
    private String createTime1;
    private String createTime2;
    private String status;
    private int status1;


}
